import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useStore = defineStore('appointment', {
  state: () => ({
    appointmentId: null,
  }),
  actions: {
    setAppointmentId(id) {
      this.appointmentId = id;
      console.log(this.appointmentId);
    },
    getters: {
      getAppointmentId: (state) => state.appointmentId,
    },
  },
});